package com.cqcet.wenchuang.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "订单实体类")
public class Orders implements Serializable {
    //序列化版本号
    private static final long serialVersionUID = 1L;

    //主键，自动生成
    @ApiModelProperty(value = "ID")
    private Long id;
<<<<<<< HEAD

=======
    //订单编号
    private String code;
    //商家id
    private Long adminId;
    //商品id
    private Long goodsId;
>>>>>>> ae245ae (数据表和实体类的修改)
    //用户id
    @ApiModelProperty(value = "用户id")
    private Long userId;
<<<<<<< HEAD

=======
    //地址id
    private Long addressBookId;
    //订单状态：1待付款，2已支付，3已取消
    private Integer status;
    //商品图片地址
    private String imageUrl;
    //商品描述
    private String description;
    //支付方式：1微信,2支付宝
    private Integer payMethod;
>>>>>>> ae245ae (数据表和实体类的修改)
    //下单时间
    @ApiModelProperty(value = "下单时间")
    private LocalDateTime orderTime;

    //结账时间
    @ApiModelProperty(value = "支付时间")
    private LocalDateTime checkoutTime;

    //订单状态:1待付款,2已付款,3已签收
    @ApiModelProperty(value = "订单状态:1待付款,2已付款,3已签收,4已删除")
    private Integer status;

    //支付方式：1微信，2支付宝
    @ApiModelProperty(value = "支付方式:1微信,2支付宝")
    private Integer payMethod;

    //逻辑删除，0删除
    @ApiModelProperty(value = "逻辑删除标识:0删除,1未删除")
    private Integer isDelete;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
<<<<<<< HEAD
=======

>>>>>>> ae245ae (数据表和实体类的修改)
}
